using System;
using System.Collections.Specialized;
using System.Xml.Serialization;
using System.Collections;

namespace InsightServiceUtility
{
    [XmlRoot("OperationResult")]
    public class OperationResult
    {
        public enum ResultCodes
        {
            Success = 0,Failure = 1
        }

        private string m_sMessage = string.Empty;
        private ResultCodes m_nResultCode = ResultCodes.Success;
        
        public ResultCodes ResultCode
        {
            get
            {
                return m_nResultCode;
            }
            set { m_nResultCode = value; }
        }

        public string ErrorMessage
        {
            get { return m_sMessage; }
            set { m_sMessage = value; } //this is set only if there is an exception otherwise the returned value is null.
        }
    }
}
